//
//  HYOUSearchDetailViewController.m
//  BestGift
//
//  Created by 温晓宇 on 16/1/8.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HYOUSearchDetailViewController.h"
#import "HYOUSearchDetailCollectionView.h"
#import "HYOUWebViewController.h"
@interface HYOUSearchDetailViewController ()<HYOUSearchDetailCollectionViewDelegate>

@property(nonatomic, retain) HYOUSearchDetailCollectionView *collection;

@end

@implementation HYOUSearchDetailViewController
//-(void)dealloc{
//    [_allArray release];
//    [_collection release];
//    [super dealloc];
//}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.collection = [[HYOUSearchDetailCollectionView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT - 64)];
    self.collection.backgroundColor = [UIColor whiteColor];
    self.collection.delegate = self;
    [self.view addSubview:self.collection];
//    NSLog(@"%@",self.allArray);
    self.collection.bigArray = self.allArray;
//    [_collection release];
}
-(void)searchDetail:(NSString *)url{
    HYOUWebViewController *web = [[HYOUWebViewController alloc] init];
    web.url = url;
    [self.navigationController pushViewController:web animated:YES];
    [web release];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
